<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>3-字符串拼接</title>
	</head>
	<body>
		<script type="text/javascript">
			//上海增本土确诊260例 无症状6051例
			var city = '上海';
			var str = '增本土确诊';
			var number1 = 260;
			var number2 = 6051;
			
			var last = city+str+number1+'例'+" "+'无症状'+number2+'例';
			alert(last);
			
			//实际用处  计算今天的年月日时分秒 -黄道吉日
			
			
			
		</script>
	</body>
</html>
